package com.geh.learn.guava;

import com.google.common.base.CharMatcher;

public class CharMatcherTest {

    public static void main(String[] args) {
        CharMatcher charMatcher = CharMatcher.inRange('0', '9');
        System.out.println(charMatcher.matches('a'));
        System.out.println(charMatcher.matchesAllOf("fasdfds132"));
        System.out.println(charMatcher.matchesAnyOf("fasdfds132"));
        System.out.println(charMatcher.removeFrom("fasdfds132"));
        System.out.println(charMatcher.retainFrom("fasdfds132"));
    }

}
